package com.food.msgupdownbackend.port.inbound;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 图片上传下载
 * @author 24270
 */
public interface ImgUseCase {
    String upload(MultipartFile file, HttpServletRequest request, String id) throws IOException;
    String download(String imgName, HttpServletRequest request, HttpServletResponse response);
}
